<?php


namespace App\Models\Pay;

use App\Models\BaseModel;

/**
 * Class PayRefundOrder
 * @package app\common\models
 * @property int status
 */
class PayRefundOrder extends BaseModel
{
    public $table = 'ims_yh_pay_refund_order';

    /**
     * 可以被批量赋值的属性.
     *
     * @var array
     */
    protected $fillable = ['uniacid', 'member_id', 'int_order_no', 'out_order_no', 'status', 'type', 'price'];

    public static function getOrderInfo($orderno)
    {
        return self::uniacid()
            ->where('out_order_no', $orderno)
            ->orderBy('id', 'desc')
            ->first();
    }
}